package com.rzj.book.service;

import com.rzj.book.bo.UserBO;
import com.rzj.book.en.User;

import java.util.List;

/**
 * @ClassName IUserService
 * @Description TODO
 * @Author Administrator
 * @Date 2020/5/14 20:52
 * @Version 1.0
 */
public interface IUserService {

    List<User> findAll() throws Exception;

    List<User> findByPage(UserBO userBO, Integer page, Integer pageSize);

    Integer findByPageCount(UserBO userBO, Integer page, Integer pageSize);

    User getUserById(Integer id);

    void addUser(User user);

    void updateUser(User user);

    void deleteUser(Integer id);

    User findByUsername(String userName);

    User login(String userName, String pwd);
}
